<?php 
	require_once 'models/models_tintuc.php';
	$obTin = new models_tintuc();
	if(isset($_GET['mod']))
	{
		switch ($_GET['mod'])
		{
			case 'detailtin':
				{
					$data = $obTin->_getTinTuc($_GET['id']);
					require  'views/main/tintuc/detailtin.php';
					break;
				}
			case 'tintuc':{
				$data['tin'] = $obTin->_listtintuc();
			require 'views/main/tintuc/index.php';
			break;
			}
				default:
					{
						$data['tin'] = $obTin->_listtintuc();
						require 'views/main/tintuc/index.php';
						break;
					}
		}
	}
	
	
	

?>